package com.twt.model.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.twt.model.base.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("t_sys_user")
public class SysUser extends BaseEntity implements Serializable {
    private String username;
    @NotEmpty(message = "账号不能为空")
    private String account;
    @NotEmpty(message = "密码不能为空")
    private String password;
    /*上次登录时间*/
    private Date lastLoginTime;
    private long loginCount;
    private int loginErrorCount;
}
